{
	name:"AbstractTool",
	onClick(pos){
		let step = this.step
			step.push(pos)

		if(step.length>=this.stepSize)
			this.commit(this.name)
		else
			this.point(this.newPoint(pos))
	},
	onMousemove(pos){
		if(this.step.length>=this.moveSize)
			this.refresh(pos)
	}
}